package com.corecode.common.pool;

public interface JObjectPool {
	
	public Object borrowObject() throws Exception;
	
	public void returnObject(Object obj) throws Exception;
	
	public void validateObject(Object obj) throws Exception;
	
	public void addObject() throws Exception;
	
	public int getNumIdle() throws UnsupportedOperationException;
	
	public int getNumActive() throws UnsupportedOperationException;
	
	public void close() throws Exception;
	
	public void setFactory(PoolableObjectFactory _factory) throws UnsupportedOperationException;
}
